package com.twang.stock.task;

import com.twang.stock.task.old.BaseTask;
import com.twang.stock.redis.RedisUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 最后更正数据
 */
@Slf4j
@Service
public class StockLastMinutesETask extends BaseTask {
    public static String key="StockLastMinutesETask";


    @Autowired
    private StockMinutesTask stockMinutesTask;

    @Autowired
    private RedisUtil redisUtil;

   // @Scheduled(cron = "0 2 15 * * ?")
    public void excute() throws InterruptedException {
            redisUtil.set(key,key,600);
            stockMinutesTask.initMinutesData();
    }

}
